<?php
/**
 * @package Mdxs2 Theme
 * @author Jamiexu
 * @version 1.0
 * @link https://blog.jamiexu.cn
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
$this->need('navicationbar.php');
?>

<div class="content">


    <div class="left" id="left">


        <div id="content-body">

            <?php while ($this->next()): ?>

                <div class="mdui-card content-body mdui-shadow-5 mdui-ripple">
                    <div class="mdui-card-primary ">
                        <div class="mdui-card-primary-title "><?php $this->title() ?></div>
                        <div class="mdui-card-primary-subtitle " id="index-info">作者：<?php $this->author(); ?>&nbsp;&nbsp;&nbsp;&nbsp;
                            分类：<?php $this->category(',', true, 'none'); ?>
                            &nbsp;&nbsp;&nbsp;&nbsp;标签：<?php $this->tags(',', true, 'none'); ?></br>
                            时间：<?php $this->date('Y-m-d H:i'); ?>
                        </div>
                    </div>

                    <div class="mdui-card-content "><?php $this->excerpt(100, ' ...'); ?></div>

                    <div style="text-align: right ">
                        <a class="mdui-btn mdui-ripple mdui-text-color-theme"
                           href="javascript:void(0);"
                           onclick="onRead('<?php $this->permalink(); ?>#comment-1')"><?php $this->commentsNum(); ?>
                            条评论</a>
                        <a class="mdui-btn mdui-ripple mdui-text-color-theme"
                           href="javascript:void(0);" onclick="onRead('<?php $this->permalink() ?>')">阅读全文</a>
                    </div>
                </div>

            <?php endwhile; ?>
        </div>


        <div id="more_content" style="text-align: center; margin-bottom: 30px;">
            <?php $this->pageLink('下一页', 'next'); ?>
            <button class="mdui-color-theme mdui-btn mdui-ripple" href="javascript:void(0);" id="load_content"
                    style="display: none;">加载更多
            </button>
            <!--            <button class="mdui-btn mdui-ripple mdui-text-color-theme " style="margin-top: 15px;">加载更多</button>-->
        </div>

    </div>
    <?php $this->need('sidebar.php'); ?>
</div>

<script src="<?php $this->options->themeUrl('inc/js/home.js'); ?>"></script>
<link id="hightlight" href="//apps.bdimg.com/libs/highlight.js/9.1.0/styles/atelier-dune-light.min.css" rel="stylesheet">
<script src="//apps.bdimg.com/libs/highlight.js/9.1.0/highlight.min.js">
    hljs.initHighlightingOnLoad();
</script>
<?php $this->need('footer.php'); ?>
